package com.xique.door.controller;

import com.xique.common.core.web.domain.AjaxResult;
import com.xique.door.service.IResourceBitService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@RequestMapping("/app/adverment")
@RestController
public class AppParkAdvertisementController {

    @Autowired
    private IResourceBitService iResourceBitService;


    /**
     * 查询广告接口
     * @return
     */
    @GetMapping("/getList")
    public AjaxResult getAdvertisementList(Integer position,Integer positionType ){

        return iResourceBitService.getAdvertisementList(position,positionType);
    }


}